package io.geekidea.boot.system.query;

import io.geekidea.boot.framework.page.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 资源管理查询类
 */
@Data
@Schema(description = "资源数据查询参数")
public class ResourceQuery extends BasePageQuery {
    private static final long serialVersionUID = 1L;

    private String keyword;
    @Schema(description = "资源类型code", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "资源类型不能为空")
    private String resourceTypeCode;

    private String grade;
    private String className;

//    @Schema(description = "页码")
//    public Integer getPageNumber() {
//        return getPageIndex();
//    }
//
//    @Schema(description = "每页数量")
//    public Integer getPageSize() {
//        return super.getPageSize();
//    }
}
